package com.groupbuying.redpacket.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author: m
 * @Description:
 * @Date: Create in 16:29 2019/10/22
 */
@Service
@FeignClient("service-task")
public interface TaskFeign {

    /**
     * 设置定时任务接口
     *
     */
    @GetMapping(value = "/setCrone")
    Map<String, String> setRule(@RequestParam("cron") String cron, @RequestParam("key") String key);


}
